home *** CD-ROM | disk | FTP | other *** search
/ CU Amiga Super CD-ROM 23 / CU Amiga - Super CD-ROM 23 (June 1998).iso / CUCD / Programming / AMOSList / AMOSLIST / text0127.txt < prev    next >
Encoding:
Text File  |  1998-04-01  |  2.2 KB  |  77 lines

  1. On 10-Mar-98, Jonas Thorell wrote: FD-extension
  2.  
  3. >Okay, now for a (perhaps) really silly question:
  4.  
  5. >Can anyone assist me in how to use the combo of the fd-extension and
  6. >identify.library?
  7.  
  8. No problem....
  9.  
  10. >The systemcall is:
  11.  
  12. >identify.library/IdHardware                       
  13. identify.library/IdHardware
  14. >   NAME
  15. >        IdHardware - get information about the system, string (V3)
  16.  
  17. >   SYNOPSIS
  18. >        String = IdHardware(Type,TagList)
  19. >         D0.l               D0.l   A0.l
  20.  
  21. >        STRPTR IdHardware(ULONG, struct TagItem *);
  22.  
  23. >        String = IdHardwareTags(Type,Tag1,...)
  24.  
  25. >        STRPTR IdHardwareTags(ULONG, ULONG,...);
  26.  
  27. >   FUNCTION
  28. >        Gets information about the current system environment. The result
  29. >        is returned as read only string. This function is fully DraCo
  30. >        compatible!
  31.  
  32. >        Once a information has been read, it will be cached internally, so
  33. >        changes will be ignored. Use IdHardwareUpdate() to clear the cache
  34. >        contents.
  35.  
  36. >   INPUTS
  37. >        Type          -- (ULONG) Information type. These types are known:
  38.  
  39. >                IDHW_SYSTEM     -- What system is used?
  40. >                        (e. g. "Amiga 4000")
  41.  
  42.  
  43. Since this function return a pointer to a string, in Amos is:
  44.  
  45. A=Lvo Idhardware(0,0) : AMIGA$=Peek$(A,255,chr$(0))
  46.  
  47. IDHW_SYSTEM=0
  48. TagList = NULL (0)
  49.  
  50.  
  51. if you want the CPU type:
  52.  
  53. A=Lvo Idhardware(1,0) : CPU$=Peek$(A,255,chr$(0))
  54.  
  55. IDHW_CPU=1
  56. TagList = NULL (0)
  57.  
  58. -- 
  59.  
  60.  
  61. Bye!
  62.  
  63.  
  64.                                      !!!
  65.                                      o o
  66.    +-----------------------------oOO-(_)-OOo----------------------------+
  67.    |                                                                    |
  68.    |  Pietro Ghizzoni - Dairymen Soft              __  /// Amiga 12OO   |
  69.    |     E-Mail:  ghizzo@agonet.it                 \\\/// 'O3O  5OMhz   |
  70.    |            Team AMIGA                          \/// 18MB - CD4x    |
  71.    |                                                                    |
  72.    | Amos Professional Team Coordinator               AMIGA RULEZ!!     |
  73.    |                                                                    |
  74.    +--------------------------------------------------------------------+
  75.  
  76.  
  77.